package avicit.tlk.back.demo.dataentity.dto;

import avicit.platform6.commons.utils.StringUtils;
import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.LogField;
import avicit.platform6.core.annotation.log.PojoRemark;
import avicit.platform6.core.domain.*;
import avicit.platform6.core.properties.PlatformConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.lang.String;
import java.math.BigDecimal;
import java.util.Date;
import javax.validation.constraints.*;

/**
 * DataEntity类
 *
 * @author 朱辉云
 * @version 1.0.0
 * @date 2025-06-13 10:23:55
 * @since 1.0.0
 */
@ApiModel(value = "DataEntityDTO", description = "DataEntity")
@PojoRemark(table = "data_entity", object = "DataEntityDTO", name = "DataEntity")
@ExcelIgnoreUnannotated
public class DataEntityDTO extends BeanDTO {

	/**
	 * 编码
	 */
	@LogField
	@ApiModelProperty(value = "编码", name = "code")
	@ExcelProperty("编码")
	@FieldRemark(column = "code", field = "code", name = "编码")
	private String code;

	/**
	 * 中文名称
	 */
	@LogField
	@ApiModelProperty(value = "中文名称", name = "cnName")
	@ExcelProperty("中文名称")
	@FieldRemark(column = "cn_name", field = "cnName", name = "中文名称")
	private String cnName;

	/**
	 * 描述
	 */
	@LogField
	@ApiModelProperty(value = "描述", name = "desc")
	@ExcelProperty("描述")
	@FieldRemark(column = "desc", field = "desc", name = "描述")
	private String desc;

	/**
	 * 英文名称
	 */
	@LogField
	@ApiModelProperty(value = "英文名称", name = "enName")
	@FieldRemark(column = "en_name", field = "enName", name = "英文名称")
	private String enName;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCnName() {
		return cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}

	@Override
	public String getLogTitle() {
		if (StringUtils.isEmpty(super.logTitle)) {
			return "DataEntity";
		} else {
			return super.logTitle;
		}
	}

	@Override
	public PlatformConstant.LogType getLogType() {
		if (super.logType == null) {
			return PlatformConstant.LogType.module_operate;
		} else {
			return super.logType;
		}
	}

	@Override
	public String getLogFormName() {
		if (StringUtils.isEmpty(super.logFormName)) {
			return "DataEntity";
		} else {
			return super.logFormName;
		}
	}
}
